import Mock from 'mockjs'
// console.log(Mock.Random.cname())

Mock.mock('/subjectlist',{
    'subjectList|10':[
        {
            "id|+1":1,
            "title":"@cword(10,30)",
            "type":"@integer(0,3)",
            "options":[
                {
                    "id":1001,
                    "val":"3"
                },
                {
                    "id":1002,
                    "val":"33"
                },
                {
                    "id":1003,
                    "val":"2"
                },
                {
                    "id":1004,
                    "val":"4"
                }
            ],
            "author":"@cname",
            "createTime":"@datetime",
            "answer1|1":["A","B","C","D"],
            "answer2":"@cword(10,20)",
            "desc":"@cword(20,50)"
        }
    ]
})